package com.nifostasky.comic.entitys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 已爬取漫画信息关联表(CoHomepageInfo)表实体类
 *
 * @author makejava
 * @since 2022-02-13 15:53:16
 */
@Data
@TableName(value = "co_homepage_info")
@ApiModel(value = "CoHomepageInfo类", description = "已爬取漫画信息关联表")
public class CoHomepageInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键:
     * 表id
     */
    @ApiModelProperty(value = "表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 外键,关联co_spider_info表id
     */
    @ApiModelProperty(value = "外键,关联co_spider_info表id")
    @TableField(value = "spider_id")
    private Long spiderId;

    /**
     *  外键,关联co_detailed_info(漫画详情)表id
     */
    @ApiModelProperty(value = " 外键,关联co_detailed_info(漫画详情)表id ")
    @TableField(value = "detailed_id")
    private Long detailedId;

    /**
     *  类型
     */
    @ApiModelProperty(value = "类型:  0-每日爬取的最新数据 , 1-推荐漫画")
    @TableField(value = "type")
    private Integer type;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
    private Date createTime;
}